#define _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    bool canPermutePalindrome(string s) {
        char ans[128] = { 0 };
        int count = 0;
        for (auto e : s)
        {
            ans[e]++;
        }
        for (int i = 0; i < 128; i++)
        {
            if (ans[i] % 2 != 0)
                count++;
        }
        if (count > 1)
            return false;
        return true;
    }
};